package org.framework.example.bean;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author rtt
 * @date 2022/3/16 10:05
 */
// @Component
public class A {

	private static final Logger LOGGER = LoggerFactory.getLogger(A.class);

	private B b;

	@Resource
	private C c;

	@Autowired
	private BaseService serviceA;

	public A () {
		LOGGER.info("constructor default");
	}

	@Autowired
	public A(B b) {
		LOGGER.info("constructor b");
	}

	public A(C c) {
		LOGGER.info("constructor c");
	}

	public void setB(B b) {
		LOGGER.info("setter b");
	}
}
